<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>
<script type="module">
	import Promise from "./index.js";
    // 规则:如果成功回调未指定,那么其默认值为v=>v;
    // 规则:如果失败回调未指定,那么其默认值为reason=>{throw reason}

    const p = new Promise(function(resolve,reject){
		reject(200);
    })
    const p2 = p.then();
	// 相当于:
    // const p2 = p.then(value=>value,reason=>{throw reason});
	console.log(p2);




</script>
</html>